﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Entity;
namespace BLL
{
  public static  class Z_Book
    {
        //查询主页所有书籍
      public static List<BookInformatica> GetBooks()
      {
          List<BookInformatica> Books = DAL.Z_Book.GetBooks();
          return Books;
      }
      //根据ID查询图书详情
      public static List<BookInformatica> GetDetail(int id)
      {
          return DAL.Z_Book.GetDetail(id);
      }
        //模糊查询   首页查询图书功能
      public static List<BookInformatica> Getmohu(string name)
      { 
         
          return DAL.Z_Book.Getmohu(name);
      }
    //菜单动态显示
      public static List<BookType> GetCaiDan()
      {
          List<BookType> Types = DAL.Z_Book.GetCaiDan();
          return Types;
      }
      //二级菜单动态显示
      public static List<BookType> GetCaiDant(int id)
      {
          List<BookType> Types = DAL.Z_Book.GetCaiDant(id);
          return Types;
      }
        //根据图书类别查询图书
      public static List<BookInformatica> Getfn(int typeid) 
      {
          List<BookInformatica> books = DAL.Z_Book.Getfn(typeid);
          return books;
      }
        //根据图书Id显示图书评论
      public static List<Comment> Getcomment(int id) 
      {
          return DAL.Z_Book.Getcomment(id);     


      }
    }
}
